package com.bigdata.service.impl;

import java.util.List;

import javax.annotation.Resource;

import com.bigdata.dao.RoleMapper;
import org.springframework.stereotype.Service;

import com.bigdata.common.base.BaseDao;
import com.bigdata.common.base.BaseServiceImpl;
import com.bigdata.model.Role;
import com.bigdata.service.RoleService;

@Service("roleService")
public class RoleServiceImpl extends BaseServiceImpl<Role, Long> implements RoleService{
	
	@Resource(name="roleMapper")
	private RoleMapper roleMapper;

	@Override
	public List<Role> seletUserRole(String userId) {
		List<Role> roleList = roleMapper.seletUserRole(userId);
		
		return roleList;
	}

	@Override
	public BaseDao<Role, Long> getDao() {
		return roleMapper;
	}

}
